<?

$res = json_encode(array('status' => false));

if (($id = gccHuuid(param('id')))) {

	$val = gccGetInterview(array('interview' => $id));

	if ($val['status'] == 'ok') {
		$res = $val['raw'];
	}

} else {
	
	$val = gccGetInterviewList(array('person' => gccUserInfo('id')));

	if ($val['status'] == 'ok') {
		$res = $val['raw'];
	}

}

header("Content-Type: application/json; charset=utf-8");
print $res;

exit;
